cask "upm" do
  version "1.15.1"
  sha256 "eea01028ff6bf4bbcd857dcf9191905a59a6e7c9ea3914c35ca0275417724cef"

  url "https://downloads.sourceforge.net/upm/upm-#{version}/upm-mac-#{version}.tar.gz"
  name "Universal Password Manager"
  desc "Password manager"
  homepage "https://upm.sourceforge.net/"

  deprecate! date: "2024-08-30", because: :unmaintained
  disable! date: "2025-08-30", because: :unmaintained

  app "upm-mac-#{version}/UPM.app"

  zap trash: "~/Library/Saved Application State/com._17od.upm.gui.MainWindow.savedState" \

  caveats do
    requires_rosetta
  end
end
